﻿@namespace Blazorise
@inherits BaseComponent
<CascadingValue Value="@this" IsFixed="true">
    <CascadingValue Value="@State">
        <div class="@ClassNames" style="@StyleNames" @attributes="@Attributes">
            @if ( !HasProgressBar )
            {
                <div class="@ProgressBarClassNames" style="@ProgressBarStyleNames" role="progressbar" aria-valuenow="@Percentage" aria-valuemin="@Min" aria-valuemax="@Max" @attributes="@Attributes">
                    @ChildContent
                </div>
            }
            else
            {
                @ChildContent
            }
        </div>
    </CascadingValue>
</CascadingValue>